<?php
if(in_array($controller, array("paymentAtHome"))){
    if($this->input->server('REQUEST_METHOD')=='POST' && $this->input->post('submit') == 'search'){
        $data = array(
            'ticketWorkers'     =>  $this->input->post('ticketWorkers'),
            'province'          =>  $this->input->post('province'),
            'district'          =>  $this->input->post('district'),
            'status'            =>  $this->input->post('status')
        );
        $this->session->set_userdata('p_search', json_encode($data));
    }
}